<template>
  <div id="pageDetail">
    <div class="head" style="">
      <i class="el-icon-arrow-left" @click="toActionShow"></i>
      <p>活动详情页</p>
    </div>
    <iframe id="detailsImg" :src="phoneUrl" class="active-con"></iframe>
    <div class="activityBtn" @click="openActivity()">
      <p>参与活动</p>
    </div>
  </div>
</template>

<script>
import { mapState } from 'vuex'
export default {
  name: 'pageDetail',
  msg: '',
  data() {
    return {}
  },
  computed: {
    ...mapState(['phoneUrl'])
  },
  mounted() {},
  methods: {
    /*返回，跳转活动展示-手机*/
    toActionShow() {
      this.$emit('changePhone', 'actionShowPhone')
    },
    openActivity() {
      this.$emit('changePhone', 'activityPages')
    }
  }
}
</script>

<style lang="less">
#pageDetail {
  .active-con {
    width: 265px;
    height: 338px;
    background-color: #fff;
    border: 0px;
  }
  .head {
    width: 100%;
    height: 26px;
    line-height: 26px;
    font-size: 14px;
    i {
      cursor: pointer;
    }
  }
  .head p {
    display: inline-block;
    margin-left: 10px;
  }
  .activityBtn {
    color: #ffffff;
    background: url('~@assets/img/activity-btn.png') no-repeat center top;
    background-size: contain;
    text-align: center;
    height: 63px;
    line-height: 55px;
    font-size: 16px;
    cursor: pointer;
  }
}
</style>
